<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of pageinfo
 *
 * @author nazmul
 */
class pageinfo {

    var $CI = NULL;
    
    public function __construct() {
        $this->CI = &get_instance();
    }
    
    public function getHeaderInfo() {
        // header array page name and array index should be same
        $headerInfo = array(
            "dashboard" => array(
                "breadcrumb" => array(
                    array("Dashboard")
                ),
                "active_menu" => "dashboard"
            ),
            "content" => array(
                "breadcrumb" => array(
                    array("Dashboard", base_url() . 'admin'),
                    array("Content", base_url() . 'admin/content'),
                    array("Add")
                ),
                "active_menu" => "content"
            ),
            "contenttype" => array(
                "breadcrumb" => array(
                    array("Dashboard", base_url() . 'admin'),
                    array("Content Type", base_url() . 'admin/contenttype'),
                    array("Add")
                ),
                "active_menu" => "content"
            ),
            "menu" => array(
                "breadcrumb" => array(
                    array("Dashboard", base_url() . 'admin'),
                    array("Menu", base_url() . 'admin/menu'),
                    array("Add")
                ),
                "active_menu" => "menu"
            ),
            "contenttypelist" => array(
                "breadcrumb" => array(
                    array("Dashboard", base_url() . 'admin'),
                    array("Content Type", base_url() . 'admin/contenttypelist'),
                    array("List")
                ),
                "active_menu" => "content"
            ),
            "contentlist" => array(
                "breadcrumb" => array(
                    array("Dashboard", base_url() . 'admin'),
                    array("Content", base_url() . 'admin/contentlist'),
                    array("List")
                ),
                "active_menu" => "content"
            ),
            "menulist" => array(
                "breadcrumb" => array(
                    array("Dashboard", base_url() . 'admin'),
                    array("Menu", base_url() . 'admin/menulist'),
                    array("List")
                ),
                "active_menu" => "menu"
            )
        );
        return $headerInfo;
    }

}
